/*---------------------------------------------------------------------
 * File name: hal_def.h
 *
 * Copyright (c) <2020-2022>, <ChenLong>
 *
 * All rights reserved.
 *
 * Author: ChenLong
 * Email: worldlong@foxmail.com
 *--------------------------------------------------------------------*/
#pragma once
/*
*/
#define BIT(pos)                 (1<<pos)
#define REG_BIT(reg, pos)        (reg & (1<<pos))
#define REG_BIT_SET(reg, pos)     reg |= 1<<pos
#define REG_BIT_CLEAR(reg, pos)   reg &= ~(1<<pos)






